/*
 * @Author: zwf 240970521@qq.com
 * @Date: 2023-07-23 19:51:01
 * @LastEditors: zwf 240970521@qq.com
 * @LastEditTime: 2023-08-12 20:48:40
 * @FilePath: /esp32_motor/dataSensing/dataSensing.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%A
 */
#ifndef DATASENSING_H
#define DATASENSING_H

#include "esp_err.h"
#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"

typedef struct
{
    union
    {
        struct
        {
            float   fData[20];
            uint8_t tail[4];
        };
        uint8_t buf[84];
    };
    int dataNum;
} DataSendFrame;

extern QueueHandle_t dataQueue;

/*函数*/
esp_err_t DATA_init(void);

#endif
